package com.atguigu.statisticsservice.client;

import com.atguigu.commonutils.R;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name = "service-ucenter",fallback = MemberFeignClient.class)
public interface MemberClient {

    /**
     * 统计某一天的注册人数
     * @param day
     * @return
     */
    @GetMapping("/ucenterservice/ucenter/registerCount/{day}")
    public R registerCount(@ApiParam(name = "day",value = "日期",required = true)@PathVariable String day);
}
